<?php


namespace App\Http\Requests\Warehousing\Shelves;


use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;

class ShelvesRequest extends FormRequest
{
    /**
     * @return array
     * @author luffyzhao@vip.126.com
     */
    public function rules()
    {
        return [
            'code' => ['required', Rule::exists('locations', 'code')],
        ];
    }
}